import request from '@/utils/request'

// 查询可燃气体浓度探测器台账列表
export function listDetector(query) {
  return request({
    url: '/ledger/detector/list',
    method: 'get',
    params: query
  })
}

// 查询可燃气体浓度探测器台账详细
export function getDetector(id) {
  return request({
    url: '/ledger/detector/' + id,
    method: 'get'
  })
}

// 新增可燃气体浓度探测器台账
export function addDetector(data) {
  return request({
    url: '/ledger/detector',
    method: 'post',
    data: data
  })
}

// 修改可燃气体浓度探测器台账
export function updateDetector(data) {
  return request({
    url: '/ledger/detector',
    method: 'put',
    data: data
  })
}

// 删除可燃气体浓度探测器台账
export function delDetector(id) {
  return request({
    url: '/ledger/detector/' + id,
    method: 'delete'
  })
}
export function exportDetector(query) {
  return request({
    url: '/ledger/detector/export',
    method: 'get',
    params: query
  })
}
